package com.usian.service;

import com.usian.pojo.Train;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("day15-mapenghui-train")
public interface FeignTrainService {

    @GetMapping("train/trainListSy")
    public List<Train> trainListSy();


    @GetMapping("train/getTrainCouNum")
    public Integer getTrainCouNum(@RequestParam(value = "trainId") Integer trainId);

    @GetMapping("train/getTrainSjNum")
    public Integer getTrainSjNum(@RequestParam(value = "trainId") Integer trainId);





}
